package com.migration.model.newdb;

import jakarta.persistence.*;
import lombok.Data;
import java.math.BigDecimal;
import java.io.Serializable;

/**
 * 防护措施多级预警阈值表 实体类
 * 表名：risk_protection_alert_setting
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "risk_protection_alert_setting")
public class RiskProtectionAlertSetting implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", nullable = false)
    private Integer id;
    
    /**
     * 关联的防护措施ID
     */
    @Column(name = "protection_id", nullable = false)
    private Long protectionId;
    
    /**
     * 预警类型：0-全部 1-高限预警 2-低限预警
     * 默认值: 0
     */
    @Column(name = "alert_type", nullable = false)
    private Byte alertType;
    
    /**
     * 高限
     */
    @Column(name = "high_limit")
    private BigDecimal highLimit;
    
    /**
     * 高高限
     */
    @Column(name = "high_high_limit")
    private BigDecimal highHighLimit;
    
    /**
     * 高高高限
     */
    @Column(name = "high_high_high_limit")
    private BigDecimal highHighHighLimit;
    
    /**
     * 低限
     */
    @Column(name = "low_limit")
    private BigDecimal lowLimit;
    
    /**
     * 低低限
     */
    @Column(name = "low_low_limit")
    private BigDecimal lowLowLimit;
    
    /**
     * 低低低限
     */
    @Column(name = "low_low_low_limit")
    private BigDecimal lowLowLowLimit;
    
    @Override
    public String toString() {
        return "RiskProtectionAlertSetting{" +
            "id=" + id +
            ", protectionId=" + protectionId +
            ", alertType=" + alertType +
            ", highLimit=" + highLimit +
            ", highHighLimit=" + highHighLimit +
            ", highHighHighLimit=" + highHighHighLimit +
            ", lowLimit=" + lowLimit +
            ", lowLowLimit=" + lowLowLimit +
            ", lowLowLowLimit=" + lowLowLowLimit +
        '}';
    }
} 